package com.gph.saviorframework.fastdfs;

/**
 * fastdfs中group的状态信息
 * 
 * @author 郭培辉
 * 
 */
public class GroupState {

	/**
	 * Group的名称
	 */
	String groupName;
	
	/**
	 * 总存储空间
	 */
	long totalMB;
	
	/**
	 * 剩余空间
	 */
	long freeMB; 
	
	/**
	 * trunk剩余空间
	 */
	long trunkFreeMB;
	
	/**
	 * 存储节点数量
	 */
	int storageCount;
	
	/**
	 * 存储节点端口
	 */
	int storagePort;
	
	/**
	 * 存储服务器的HTTP端口
	 */
	int storageHttpPort;
	
	/**
	 * 处于活动状态的存储节点
	 */
	int activeCount;
	
	/**
	 * 目前用于上传文件的存储节点的索引
	 */
	int currentWriteServer;
	
	/**
	 * 每个存储节点的存储路径个数
	 */
	int storePathCount;
	
	/**
	 * 每个存储录几个的子文件夹个数
	 */
	int subdirCountPerPath; 
	
	/**
	 * 当前trunk文件的id
	 */
	int currentTrunkFileId; // current trunk file id

	/**
	 * @return the groupName
	 */
	public String getGroupName() {
		return groupName;
	}

	/**
	 * @param groupName
	 *            the groupName to set
	 */
	public void setGroupName(String groupName) {
		this.groupName = groupName;
	}

	/**
	 * @return the totalMB
	 */
	public long getTotalMB() {
		return totalMB;
	}

	/**
	 * @param totalMB
	 *            the totalMB to set
	 */
	public void setTotalMB(long totalMB) {
		this.totalMB = totalMB;
	}

	/**
	 * @return the freeMB
	 */
	public long getFreeMB() {
		return freeMB;
	}

	/**
	 * @param freeMB
	 *            the freeMB to set
	 */
	public void setFreeMB(long freeMB) {
		this.freeMB = freeMB;
	}

	/**
	 * @return the trunkFreeMB
	 */
	public long getTrunkFreeMB() {
		return trunkFreeMB;
	}

	/**
	 * @param trunkFreeMB
	 *            the trunkFreeMB to set
	 */
	public void setTrunkFreeMB(long trunkFreeMB) {
		this.trunkFreeMB = trunkFreeMB;
	}

	/**
	 * @return the storageCount
	 */
	public int getStorageCount() {
		return storageCount;
	}

	/**
	 * @param storageCount
	 *            the storageCount to set
	 */
	public void setStorageCount(int storageCount) {
		this.storageCount = storageCount;
	}

	/**
	 * @return the storagePort
	 */
	public int getStoragePort() {
		return storagePort;
	}

	/**
	 * @param storagePort
	 *            the storagePort to set
	 */
	public void setStoragePort(int storagePort) {
		this.storagePort = storagePort;
	}

	/**
	 * @return the storageHttpPort
	 */
	public int getStorageHttpPort() {
		return storageHttpPort;
	}

	/**
	 * @param storageHttpPort
	 *            the storageHttpPort to set
	 */
	public void setStorageHttpPort(int storageHttpPort) {
		this.storageHttpPort = storageHttpPort;
	}

	/**
	 * @return the activeCount
	 */
	public int getActiveCount() {
		return activeCount;
	}

	/**
	 * @param activeCount
	 *            the activeCount to set
	 */
	public void setActiveCount(int activeCount) {
		this.activeCount = activeCount;
	}

	/**
	 * @return the currentWriteServer
	 */
	public int getCurrentWriteServer() {
		return currentWriteServer;
	}

	/**
	 * @param currentWriteServer
	 *            the currentWriteServer to set
	 */
	public void setCurrentWriteServer(int currentWriteServer) {
		this.currentWriteServer = currentWriteServer;
	}

	/**
	 * @return the storePathCount
	 */
	public int getStorePathCount() {
		return storePathCount;
	}

	/**
	 * @param storePathCount
	 *            the storePathCount to set
	 */
	public void setStorePathCount(int storePathCount) {
		this.storePathCount = storePathCount;
	}

	/**
	 * @return the subdirCountPerPath
	 */
	public int getSubdirCountPerPath() {
		return subdirCountPerPath;
	}

	/**
	 * @param subdirCountPerPath
	 *            the subdirCountPerPath to set
	 */
	public void setSubdirCountPerPath(int subdirCountPerPath) {
		this.subdirCountPerPath = subdirCountPerPath;
	}

	/**
	 * @return the currentTrunkFileId
	 */
	public int getCurrentTrunkFileId() {
		return currentTrunkFileId;
	}

	/**
	 * @param currentTrunkFileId
	 *            the currentTrunkFileId to set
	 */
	public void setCurrentTrunkFileId(int currentTrunkFileId) {
		this.currentTrunkFileId = currentTrunkFileId;
	}

}
